@layout("/common/_container.html",{js:["/assets/standers/data/category.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">品类列表</span>
</div>


<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="categoryName" class="layui-input" type="text" placeholder="品类名称/编码"/>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>${lang.get("BTN_SEARCH")}</button>
                                <button id="btnClearSearch" class="layui-btn layui-btn-warm"><i>&#xe666;</i>${lang.get("BTN_RESET")}</button>
                                <button id="expandAll" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>${lang.get("BTN_EXPAND_ALL")}</button>
                                <button id="foldAll" class="layui-btn icon-btn"><i class="layui-icon">&#xe656;</i>${lang.get("BTN_COLLAPSE_ALL")}</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="categoryTable" lay-filter="categoryTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>


<script type="text/html" id="tableBar">
    {{#  if(d.id != 1 && d.id != 1001 && d.id != 1006){ }}
    {{#  if(d.categoryLevel < 4){ }}
    <a class="layui-btn layui-btn-xs" lay-event="add">${lang.get("BTN_ADD")}</a>
    {{#  } }}
    <a class="layui-btn layui-btn-xs" lay-event="edit">${lang.get("BTN_EDIT")}</a>
    <a class="layui-btn layui-btn-xs" lay-event="delete">${lang.get("BTN_DELETE")}</a>
    {{#  } }}
</script>
@}